/**  
* @Title: ProductService.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年3月29日  
*/
package com.fortune.rainshine.service.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.ProductModel;

/**  
* @ClassName: ProductService  
* @Description: TODO(产品)  
* @author 张鑫
* @phone 17561783855
* @date 2019年3月29日  
*    
*/
@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@RestController
public interface ProductService {

	@PostMapping(value = "/product/createProduct")
	MsgModel add(ProductModel model);

	@PostMapping(value = "/product/productList")
	MsgModel list(ParmsModel parm);

	@PostMapping(value = "/product/update")
	MsgModel update(ProductModel model);

	@PostMapping(value = "/product/delProduct")
	MsgModel delete(ProductModel model);
}
